package com.yunjian.core.basic.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SDataDicExample {
    /**
	 * @mbggenerated
	 */
	protected String orderByClause;
	/**
	 * @mbggenerated
	 */
	protected boolean distinct;
	/**
	 * @mbggenerated
	 */
	protected List<Criteria> oredCriteria;

	/**
	 * @mbggenerated
	 */
	public SDataDicExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	/**
	 * @mbggenerated
	 */
	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	/**
	 * @mbggenerated
	 */
	public String getOrderByClause() {
		return orderByClause;
	}

	/**
	 * @mbggenerated
	 */
	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	/**
	 * @mbggenerated
	 */
	public boolean isDistinct() {
		return distinct;
	}

	/**
	 * @mbggenerated
	 */
	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	/**
	 * @mbggenerated
	 */
	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	/**
	 * @mbggenerated
	 */
	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	/**
	 * @mbggenerated
	 */
	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	/**
	 * @mbggenerated
	 */
	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	/**
	 * @mbggenerated
	 */
	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	/**
	 * This class was generated by MyBatis Generator. This class corresponds to the database table s_data_dic
	 * @mbggenerated
	 */
	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value,
				String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property
						+ " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1,
				Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property
						+ " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		public Criteria andDicGroupIsNull() {
			addCriterion("DIC_GROUP is null");
			return (Criteria) this;
		}

		public Criteria andDicGroupIsNotNull() {
			addCriterion("DIC_GROUP is not null");
			return (Criteria) this;
		}

		public Criteria andDicGroupEqualTo(String value) {
			addCriterion("DIC_GROUP =", value, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupNotEqualTo(String value) {
			addCriterion("DIC_GROUP <>", value, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupGreaterThan(String value) {
			addCriterion("DIC_GROUP >", value, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupGreaterThanOrEqualTo(String value) {
			addCriterion("DIC_GROUP >=", value, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupLessThan(String value) {
			addCriterion("DIC_GROUP <", value, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupLessThanOrEqualTo(String value) {
			addCriterion("DIC_GROUP <=", value, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupLike(String value) {
			addCriterion("DIC_GROUP like", value, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupNotLike(String value) {
			addCriterion("DIC_GROUP not like", value, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupIn(List<String> values) {
			addCriterion("DIC_GROUP in", values, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupNotIn(List<String> values) {
			addCriterion("DIC_GROUP not in", values, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupBetween(String value1, String value2) {
			addCriterion("DIC_GROUP between", value1, value2, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicGroupNotBetween(String value1, String value2) {
			addCriterion("DIC_GROUP not between", value1, value2, "dicGroup");
			return (Criteria) this;
		}

		public Criteria andDicKeyIsNull() {
			addCriterion("DIC_KEY is null");
			return (Criteria) this;
		}

		public Criteria andDicKeyIsNotNull() {
			addCriterion("DIC_KEY is not null");
			return (Criteria) this;
		}

		public Criteria andDicKeyEqualTo(String value) {
			addCriterion("DIC_KEY =", value, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyNotEqualTo(String value) {
			addCriterion("DIC_KEY <>", value, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyGreaterThan(String value) {
			addCriterion("DIC_KEY >", value, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyGreaterThanOrEqualTo(String value) {
			addCriterion("DIC_KEY >=", value, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyLessThan(String value) {
			addCriterion("DIC_KEY <", value, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyLessThanOrEqualTo(String value) {
			addCriterion("DIC_KEY <=", value, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyLike(String value) {
			addCriterion("DIC_KEY like", value, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyNotLike(String value) {
			addCriterion("DIC_KEY not like", value, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyIn(List<String> values) {
			addCriterion("DIC_KEY in", values, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyNotIn(List<String> values) {
			addCriterion("DIC_KEY not in", values, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyBetween(String value1, String value2) {
			addCriterion("DIC_KEY between", value1, value2, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicKeyNotBetween(String value1, String value2) {
			addCriterion("DIC_KEY not between", value1, value2, "dicKey");
			return (Criteria) this;
		}

		public Criteria andDicValueIsNull() {
			addCriterion("DIC_VALUE is null");
			return (Criteria) this;
		}

		public Criteria andDicValueIsNotNull() {
			addCriterion("DIC_VALUE is not null");
			return (Criteria) this;
		}

		public Criteria andDicValueEqualTo(String value) {
			addCriterion("DIC_VALUE =", value, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueNotEqualTo(String value) {
			addCriterion("DIC_VALUE <>", value, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueGreaterThan(String value) {
			addCriterion("DIC_VALUE >", value, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueGreaterThanOrEqualTo(String value) {
			addCriterion("DIC_VALUE >=", value, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueLessThan(String value) {
			addCriterion("DIC_VALUE <", value, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueLessThanOrEqualTo(String value) {
			addCriterion("DIC_VALUE <=", value, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueLike(String value) {
			addCriterion("DIC_VALUE like", value, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueNotLike(String value) {
			addCriterion("DIC_VALUE not like", value, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueIn(List<String> values) {
			addCriterion("DIC_VALUE in", values, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueNotIn(List<String> values) {
			addCriterion("DIC_VALUE not in", values, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueBetween(String value1, String value2) {
			addCriterion("DIC_VALUE between", value1, value2, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicValueNotBetween(String value1, String value2) {
			addCriterion("DIC_VALUE not between", value1, value2, "dicValue");
			return (Criteria) this;
		}

		public Criteria andDicDescIsNull() {
			addCriterion("DIC_DESC is null");
			return (Criteria) this;
		}

		public Criteria andDicDescIsNotNull() {
			addCriterion("DIC_DESC is not null");
			return (Criteria) this;
		}

		public Criteria andDicDescEqualTo(String value) {
			addCriterion("DIC_DESC =", value, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescNotEqualTo(String value) {
			addCriterion("DIC_DESC <>", value, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescGreaterThan(String value) {
			addCriterion("DIC_DESC >", value, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescGreaterThanOrEqualTo(String value) {
			addCriterion("DIC_DESC >=", value, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescLessThan(String value) {
			addCriterion("DIC_DESC <", value, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescLessThanOrEqualTo(String value) {
			addCriterion("DIC_DESC <=", value, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescLike(String value) {
			addCriterion("DIC_DESC like", value, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescNotLike(String value) {
			addCriterion("DIC_DESC not like", value, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescIn(List<String> values) {
			addCriterion("DIC_DESC in", values, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescNotIn(List<String> values) {
			addCriterion("DIC_DESC not in", values, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescBetween(String value1, String value2) {
			addCriterion("DIC_DESC between", value1, value2, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andDicDescNotBetween(String value1, String value2) {
			addCriterion("DIC_DESC not between", value1, value2, "dicDesc");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIsNull() {
			addCriterion("CREATE_TIME is null");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIsNotNull() {
			addCriterion("CREATE_TIME is not null");
			return (Criteria) this;
		}

		public Criteria andCreateTimeEqualTo(Date value) {
			addCriterion("CREATE_TIME =", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotEqualTo(Date value) {
			addCriterion("CREATE_TIME <>", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeGreaterThan(Date value) {
			addCriterion("CREATE_TIME >", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
			addCriterion("CREATE_TIME >=", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeLessThan(Date value) {
			addCriterion("CREATE_TIME <", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
			addCriterion("CREATE_TIME <=", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIn(List<Date> values) {
			addCriterion("CREATE_TIME in", values, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotIn(List<Date> values) {
			addCriterion("CREATE_TIME not in", values, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeBetween(Date value1, Date value2) {
			addCriterion("CREATE_TIME between", value1, value2, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
			addCriterion("CREATE_TIME not between", value1, value2,
					"createTime");
			return (Criteria) this;
		}

		public Criteria andModTimeIsNull() {
			addCriterion("MOD_TIME is null");
			return (Criteria) this;
		}

		public Criteria andModTimeIsNotNull() {
			addCriterion("MOD_TIME is not null");
			return (Criteria) this;
		}

		public Criteria andModTimeEqualTo(Date value) {
			addCriterion("MOD_TIME =", value, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeNotEqualTo(Date value) {
			addCriterion("MOD_TIME <>", value, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeGreaterThan(Date value) {
			addCriterion("MOD_TIME >", value, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeGreaterThanOrEqualTo(Date value) {
			addCriterion("MOD_TIME >=", value, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeLessThan(Date value) {
			addCriterion("MOD_TIME <", value, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeLessThanOrEqualTo(Date value) {
			addCriterion("MOD_TIME <=", value, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeIn(List<Date> values) {
			addCriterion("MOD_TIME in", values, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeNotIn(List<Date> values) {
			addCriterion("MOD_TIME not in", values, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeBetween(Date value1, Date value2) {
			addCriterion("MOD_TIME between", value1, value2, "modTime");
			return (Criteria) this;
		}

		public Criteria andModTimeNotBetween(Date value1, Date value2) {
			addCriterion("MOD_TIME not between", value1, value2, "modTime");
			return (Criteria) this;
		}
	}

	/**
	 * This class was generated by MyBatis Generator. This class corresponds to the database table s_data_dic
	 * @mbggenerated
	 */
	public static class Criterion {
		private String condition;
		private Object value;
		private Object secondValue;
		private boolean noValue;
		private boolean singleValue;
		private boolean betweenValue;
		private boolean listValue;
		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue,
				String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}

	/**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table s_data_dic
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }
}